f0754b7509374252458f5ebfa95cb0a5461b21be,src/main/java/org/graylog2/MessageCounterImpl.java,MessageCounterImpl,countUpHost,#String#number#,130

Before Change


        }

        counter.add(x);
        this.hosts.put(hostname, counter);
    }

}

After Change


     */
    public synchronized void countUpHost(String hostname, final int x) {
        hostname = Tools.encodeBase64(hostname);
        if (this.hosts.containsKey(hostname)) {
            // There already is an entry. Increment.
            final int oldCount = this.hosts.get(hostname);
            this.hosts.put(hostname, oldCount+x); // Overwrites old entry.
        } else {
            // First entry for this stream.
            this.hosts.put(hostname, x);
        }
    }